import request from '@/utils/request'

// 查询药物相互作用管理列表
export function listIncompatibility(query) {
  return request({
    url: '/gene/drug/incompatibility/list', method: 'get', params: query
  })
}

// 查询药物相互作用管理列表
export function searchIncompatibilityList(query) {
  return request({
    url: '/gene/drug/incompatibility/searchIncompatibilityList', method: 'get', params: query
  })
}

// 新增药物相互作用
export function deleteIncompatibility(ids) {
  return request({
    url: `/gene/drug/incompatibility/delete/${ids}`, method: 'delete'
  })
}

// 新增药物相互作用
export function addIncompatibility(data) {
  return request({
    url: '/gene/drug/incompatibility/add', method: 'post', data: data
  })
}

// 修改药物相互作用
export function updateIncompatibility(data) {
  return request({
    url: '/gene/drug/incompatibility/update', method: 'post', data: data
  })
}
// 修改药物API药物相互作用
export function updateIncompatibilityApi(data) {
  return request({
    url: '/gene/drug/incompatibility/updateApi', method: 'post', data: data
  })
}

// 查询药物相互作用api列表
export function getIncompatibilityList(query) {
  return request({
    url: '/gene/drug/incompatibility/getIncompatibilityList', method: 'get', params: query
  })
}

// 查询药物相互作用api列表
export function listVGeneIncompatibilityApi(query) {
  return request({
    url: '/gene/v/listVGeneIncompatibilityApi', method: 'get', params: query
  })
}

